home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / GUISwitch.au3 < prev    next >
Text File  |  2007-09-08  |  507b  |  24 lines

  1. #include <GUIConstants.au3>
  2.  
  3. $parent1= GUICreate("Parent1")
  4. GUICtrlCreateTab(10,10)
  5. $tabitem = GUICtrlCreateTabItem("tab1")
  6. GUICtrlCreateTabItem("tab2")
  7. GUICtrlCreateTabItem("")
  8.  
  9. $parent2= GUICreate("Parent2", -1, -1, 100, 100)
  10.  
  11. GUISwitch($parent2)
  12. GUISetState()
  13. Do
  14. $msg=GUIGetMsg()
  15. until $msg = $GUI_EVENT_CLOSE
  16. GuiSwitch($parent1,$tabitem)
  17. GUICtrlCreateButton("OK",50,50,50)
  18. GUICtrlCreateTabItem("")
  19.  
  20. GUISetState(@SW_SHOW,$parent1)
  21. Do
  22. $msg=GUIGetMsg()
  23. until $msg = $GUI_EVENT_CLOSE
  24.